package com.yunyang.jczd.facade.fileexport.service;

import com.yunyang.jczd.business.response.Response;
import com.yunyang.jczd.facade.fileexport.entity.ExportConfig;
import com.yunyang.jczd.core.service.base.service.IBaseService;
import org.springframework.http.HttpHeaders;
import org.springframework.scheduling.annotation.Async;

import java.util.Map;

/**
 * <p>
 * 导出配置，目前默认excel 服务类
 * </p>
 *
 * @author kerns
 * @since 2020-12-17
 */
public interface IExportService {

    Response tryRequest(HttpHeaders httpHeaders, Map<String, Object> param, ExportConfig exportConfig);

    @Async
    void export(HttpHeaders httpHeaders, Map<String, Object> param, ExportConfig exportConfig);
}
